package require SOAP 



SOAP::create getUserByUserName \
	-uri "org.jma.app.ewisdom.services.SrvUserManager" \
	-proxy "http://localhost:7042/ewisdom" \
	-params { "userName" "string" }
	
	
SOAP::create getUsers \
	-uri "org.jma.app.ewisdom.services.SrvUserManager" \
	-proxy "http://localhost:7042/ewisdom" 
	

SOAP::create deleteUser\
          -uri "org.jma.app.ewisdom.services.SrvUserManager"\
          -proxy "http://localhost:7042/ewisdom" \
          -params {"userName" "string"}

SOAP::create addUser\
          -uri "org.jma.app.ewisdom.services.SrvUserManager"\
          -proxy "http://localhost:7042/ewisdom" \
          -params {"userName" "string" "name" "string" "password" "string" "email" "string"}
     
          
	
getUserByUserName -headers {SSAuth-userName root SSAuth-password root SSauth-initiateSession true SSauth-timeout 120000000}  root


#maintain the sessionuserName


	
set session [lindex [SOAP::getHeaders getUserByUserName] 1]
getUsers -headers $session

getUserByUserName -headers $session root

getUserByUserName -headers [lappend session SSauth-terminateSession  true] root


